//
//  UILabel+GYLable.m
//  Visitor
//
//  Created by x on 2017/9/12.
//  Copyright © 2017年 HLB. All rights reserved.
//

#import "UILabel+GYLable.h"

@implementation UILabel (GYLable)

+ (UILabel *)lableWithBackGround {
    
    UILabel *lable = [[UILabel alloc] init];
    lable.backgroundColor = RGBColor(0XCCCCCC);
    lable.translatesAutoresizingMaskIntoConstraints = NO;
    
    return lable;
}

+ (UILabel *)lableWithMark:(NSString *)title titleColor:(UIColor *)titleColor backgroundColor:(UIColor *)backgroundColor font:(CGFloat)font {
    UILabel *lable = [[UILabel alloc] init];
    lable.backgroundColor = backgroundColor;
    lable.textColor = titleColor;
    lable.text = title;
    lable.font = [UIFont systemFontOfSize:font];
    lable.translatesAutoresizingMaskIntoConstraints = NO;
    
    return lable;
}
@end
